import java.io.Serializable;

public class PLRecord implements Serializable {
	
	// default serialization id	
	private static final long serialVersionUID = 1L;
	
	public enum RecordIdT {
		kMin(-1), 
		kKeyValue(0),	
		kQueryResponse(1), 
		kFeatures(2), 
		kPatterns(3), 
		kCognition(4), 
		kMax(5);
		
		private int mId = 0;

		private RecordIdT(int id) {setId(id);}
		
		public void setId(int id) {
			mId = id;
		}
		public int getId() {
			return mId;
		}

	}
	
	private RecordIdT mRecordType = RecordIdT.kMin;

	public PLRecord(RecordIdT type) {mRecordType = type;}
	public boolean IsValid() { return mRecordType.getId() > RecordIdT.kMin.getId() && mRecordType.getId() < RecordIdT.kMax.getId();}
	public RecordIdT GetType() {return mRecordType;}		
}
